package loengud.w08;

import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class HelloGraphics3 extends JPanel {
	public static void main(String[] args) {
		// create a new window and a new panel, add to window
		JFrame frame = new JFrame("HelloGraphics3");
		HelloGraphics3 panel = new HelloGraphics3();
		frame.getContentPane().add("Center", panel);
		// determine window properties (size etc), show...
		frame.setVisible(true);
		frame.setSize(400, 400);
	} // -main

	public HelloGraphics3() { // constructor
		// Create widgets and add to window
	}

	public void paintComponent(Graphics g) {// re-implement
		// For example, draw something on the Graphics object!
		g.drawString("Hello is drawn now", 100, 200);
		// paint():
		// 	paintComponent();
		// 	bg
		// 	border
	}
}
